package com.ktjy.pojo;

import com.ktjy.JavaBase.BaseClass;

import java.io.Serializable;

public final class Employee extends BaseClass implements Serializable {
    private String empNo;
    private String empName;
    private String empPost;
    private double empSalary;

    public String getEmpNo() {
        return empNo;
    }

    public void setEmpNo(String empNo) {
        this.empNo = empNo;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getEmpPost() {
        return empPost;
    }

    public void setEmpPost(String empPost) {
        this.empPost = empPost;
    }

    public double getEmpSalary() {
        return empSalary;
    }

    public void setEmpSalary(double empSalary) {
        this.empSalary = empSalary;
    }

    public Employee(String empNo, String empName, String empPost, double empSalary) {
        this.empNo = empNo;
        this.empName = empName;
        this.empPost = empPost;
        this.empSalary = empSalary;
    }

    public void showInfo() {
        System.out.println("员工工号"+getEmpNo()+"姓名"+getEmpName());
        System.out.println("员工职位"+getEmpPost()+"工资"+getEmpSalary());

    }

    public Employee() {
    }
}
